<?php

namespace app\frontend\controller;

use app\admin\model\Caser;
use think\Controller;
use think\Db;


class About extends Controller
{
    public function index()
    {
        echo $this->fetch();
    }

    public function recruitment()
    {
        $case = new Caser();
        $casies = $case->table('d_job');
        $cases = $casies->paginate(20);
        $this->assign('cases', $cases);
        echo $this->fetch();
    }

    public function details()
    {
        $id = input('id');
        $case = Db::table('d_job')->where('id',$id)->find();
        $this->assign('case', $case);
        echo $this->fetch();
    }

    public function team()
    {
        $id = input('id');
        $case1 = Db::table('d_team')->where('type', 1)->paginate(6);
        $this->assign('case1', $case1);
        $case2 = Db::table('d_team')->where('type', 2)->paginate(6);
        $this->assign('case2', $case2);
        $case3 = Db::table('d_team')->where('type', 3)->paginate(6);
        $this->assign('case3', $case3);
        echo $this->fetch();
    }
}
